import LayoutMain from '@/layout';

const meta = {
  auth: true,
};

const pre = 'home_';

export default {
  path: '/home',
  name: 'home',
  header: 'home',
  redirect: '/index',
  meta,
  component: LayoutMain,
  children: [
    {
      path: '/index',
      name: `${pre}index`,
      header: 'home',
      meta: {
        auth: ['admin-index-index'],
        title: '主页',
        isAffix: false,
      },
      component: () => import('@/pages/index/index'),
    },
  ],
};
